*** Settings ***
Library           Selenium2Library
Resource          ../OpSelectSelect.robot    # 双击域
Resource          ../../CommonVars/Locations/SITSYS/MoudleView/LQuotationSalesView/LQutationSalesView.robot
Resource          ../OpProposal/OpFloatButtonPart/Op 按钮点击后.robot

*** Keywords ***
Go DirectSales Business Mode
    [Arguments]    ${SelectCompanycode}    ${SelectSalesmanCode}    ${SelectSalesmanName}    ${businessMode}    ${selectconferCode}    ${selectconferCodeName}    ${Product}
    [Documentation]    直接业务
    ...    ${SelectCompanycode} | ${SelectSalesmanCode} | ${SelectSalesmanName} | ${businessMode} | ${selectconferCode} | ${selectconferCodeName} | ${MotorVhl} | ${Product}
    ...
    ...    双击域固定参数： ${selectlocal} | ${SelectCode} | \ ${SelectName}
    #机构代码
    Go SelectSelect By InputText    ${LCompanyCode}    ${SelectCompanycode}
    #业务方式
    run keyword if    ${businessMode}==1    Select From List By Value    ${LBusinessMode}    ${businessMode}
    ...    ELSE IF    ${businessMode}==2    Select From List By Value    ${LBusinessMode}    ${businessMode}    #直接业务
    run keyword if    ${businessMode}==2    Go SelectSelect    ${LConferCode}    ${selectconferCode}    ${selectconferCodeName}    #渠道协议
    #业务员
    Go SelectSelect    ${LSalesmanName}    ${SelectSalesmanCode}    ${SelectSalesmanName}
    #车辆类型
    #Click Element    ${MotorVhl}
    #报价产品 A
    Select From List By Value    ${LProduct}    ${Product}
    Op 销售界面点击提交后
